<script lang="ts" setup>
	import { ref, reactive } from "vue";
	let props = defineProps(['list'])
	let rateValue = ref(1)
	let content = ref('')
</script>
<template>
	<view class="" v-for="(item,index) in props.list" :key="index">
		<view class="evaluateTop">
			<view class="vtl">
				<!-- <image :src="item.avatar" mode=""></image> -->
				<image :src="item.memberAvatar||'../../static/logo.png'" mode=""></image>
				<view style="display: flex;flex-direction: column;">
					<text>{{ item.memberName }}</text>
					<!-- <text>{{ item.orderId }}</text> -->
				</view>
			</view>
			<view class="vtr">
				{{ item.createTime }}
			</view>
		</view>
		<view class="rate">
			<view style="margin-right: 20rpx;">评分</view>
			<view><u-rate :readonly="true" active-color="rgb(242 203 11)" count="5" v-model="item.star"
					size="26"></u-rate></view>
		</view>
		<view class="evaluateCon">
			<!-- 	<u-read-more showHeight="80">
				<rich-text :nodes="item.comment"></rich-text>
			</u-read-more> -->
			<view class="">
				{{ item.comment }}
			</view>
		</view>
		<view class="evaImg" v-if="item.imageList">
			<image v-for="it in JSON.parse(item.imageList)" :src="it.url" mode=""></image>
		</view>
	</view>
</template>
<style lang="scss">
	.rate {
		margin: 30rpx 0;
		height: 50rpx;
		box-sizing: border-box;
		font-size: 29rpx;
		line-height: 50rpx;
		display: flex;
	}

	.evaluateTop {
		margin-top: 20rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;

		.vtl {
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 28rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: rgba(0, 0, 0, 0.45);

			image {
				width: 60rpx;
				height: 60rpx;
				border-radius: 50rpx;
				margin-right: 20rpx;
			}
		}

		.vtr {
			font-size: 28rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: rgba(0, 0, 0, 0.45);
		}
	}

	.evaluateCon {
		margin: 20rpx 0;
		font-size: 28rpx;
		font-weight: 400;
		color: rgba(0, 0, 0, 0.85);
	}

	.evaImg {
		image {
			width: 190rpx;
			height: 190rpx;
			margin-right: 10rpx;
		}
	}
</style>